import request from '@/utils/request'
// 登录
export const login = data => {
    return request({
        method: 'POST',
        url: '/sso/login',
        params:data
    })
}
// 获取验证码
export const sendSms = params => {
    return request({
        method: 'GET',
        url: '/sso/getAuthCode',
        params
    })
}
// 获取用户信息
export const getUserInfo = params => {
    return request({
        method: 'GET',
        url: '/sso/info',
        params
    })
}
// 注册
export const register = data => {
  return request({
      method: 'POST',
      url: '/sso/register',
      params:data
  })
}
// 会员修改密码
export const changePwd = data => {
    return request({
        method: 'POST',
        url: '/sso/updatePassword',
        data
    })
}